<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ajax图片上传</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
​
<form id="photoForm" class="form-horizontal" action="/image" method="post" enctype="multipart/form-data">
    {{csrf_field()}}
    <div class="form-group">
        <label for="name" class="col-sm-2 control-label">头像：</label>
        <div class="col-sm-10">
            {{--多图上传--}}
            <input type="file" name="img[]" multiple="multiple"    />
        </div>
    </div>
    <div class="form-group">
        <label for="intro" class="col-sm-2 control-label">阅览</label>
        <div class="col-sm-4">
            <img src="" alt="" id="avatar_url" width="100";height="100">
        </div>
    </div>
    <div class="form-group">
        <label for="intro" class="col-sm-2 control-label">
            <input type="submit" value="上传"/>
        </label>
    </div>
    ​
</form>
​

</body>
</html>